using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(PlayerStats))]
public class PlayerStatsEditor : Editor
{

	private PlayerStats statsTarget => target as PlayerStats;

	public override void OnInspectorGUI()
	{
		base.OnInspectorGUI();
		if (GUILayout.Button("Reset Player"))
		{
			statsTarget.ResetPlayer();
		}
	}
}
